package timer

import "time"

var Now time.Time = time.Now()
var NowSec int64 = Now.Unix()

func init() {
	go refresh()
}

func refresh() {
	for {
		Now = time.Now()
		NowSec = Now.Unix()
		time.Sleep(100 * time.Millisecond) // 高性能时间，精确到0.1秒
	}
}
